import request from '@/utils/request'

// 查询客户联系人列表
export function listCrmconnect(query) {
  return request({
    url: '/system/crmconnect/list',
    method: 'get',
    params: query
  })
}

// 查询客户联系人详细
export function getCrmconnect(connectId) {
  return request({
    url: '/system/crmconnect/' + connectId,
    method: 'get'
  })
}

// 新增客户联系人
export function addCrmconnect(data) {
  return request({
    url: '/system/crmconnect',
    method: 'post',
    data: data
  })
}

// 修改客户联系人
export function updateCrmconnect(data) {
  return request({
    url: '/system/crmconnect',
    method: 'put',
    data: data
  })
}

// 删除客户联系人
export function delCrmconnect(connectId) {
  return request({
    url: '/system/crmconnect/' + connectId,
    method: 'delete'
  })
}
